package com.example.student.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.student.bean.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

@Mapper
public interface IStudentMapper extends BaseMapper<Student> {
    /**
     *
     * @param page
     * @return
     *
     *
     * 分页查询商品的列表
     * 1、第一个参数传递分页的对象page (此对象封装当前页码，还有显示查询多少)
     */

    IPage<Student> searchPage(IPage<Student> page);

    Student searchById(@Param("searchId")int id);

}
